package com.example.listossimage.entity.esPo;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.Date;


public class Book {
//    @Id
//    @Field(type = FieldType.Text)
//    private String id;
//    @Field(analyzer="ik_max_word", type = FieldType.Text)
//    private String title;
//    @Field(analyzer="ik_max_word", type = FieldType.Text)
//    private String author;
//    @Field(type = FieldType.Double)
//    private Double price;
//    @Field(type = FieldType.Date,format = DateFormat.basic_date_time)
//    private Date createTime;
//    @Field(type = FieldType.Date,format = DateFormat.basic_date_time)
//    private Date updateTime;
}
